package edu.software.argo.user.service;

import edu.software.argo.entity.User;
import edu.software.argo.user.dao.UserDao;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service//代表是业务逻辑层的代码
public class UserService {
    @Value("zhangsan")
    private String name;

    @Resource//不用我们来实例化对象
    private UserDao userDao;


    public void regist(User user){
        System.out.println("regist执行");
        this.userDao.insert();
    }
    public void login(){

    }
}
